package com.bootdo.common.utils;

public class RegexUtils {
	/**
	 * 验证手机号
	 */
//	public static final String REGEX_MOBILE = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$";
	public static final String REGEX_MOBILE = "^1[0-9]{10}$";
	/**
	 * 验证批量派券数量大于0的正整数
	 */
	public static final String REGEX_BATCH_CPNUM = "^[1-9]+[0-9]*$";
	
	public static void main(String[] args) {
//		String phone1 = "15663825983";
//		String phone2 = "1566382598";
//		System.out.println(phone1.matches(REGEX_MOBILE));
//		System.out.println(phone2.matches(REGEX_MOBILE));
		String num1 = "0";
		String num2 = "1.2";
		System.out.println(num1.matches(REGEX_BATCH_CPNUM));
		System.out.println(num2.matches(REGEX_BATCH_CPNUM));
	}

}
